<template>
  <a-modal
    :maskClosable="false"
    title="用户协议"
    :width="700"
    :visible="visible"
    :footer="null"
    centered
    :confirmLoading="confirmLoading"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <div style="height: 400px;overflow: auto;" v-html="value"></div>
  </a-modal>
</template>

<script>

export default {
  name: 'Dialog',
  data () {
    return {
      visible: false,
      value: this.$store.getters.sysConfig.userAgreement
    }
  },
  created () {
  },
  methods: {
    show () {
      this.visible = true
    },
    close () {
      this.$emit('close')
      this.visible = false
    },
    handleCancel () {
      this.visible = false
    }

  }
}
</script>

<style scoped>

</style>
